const fs = require('fs')
const KoaRouter = require('koa-router')

const router = new KoaRouter()

fs.readdirSync(__dirname).forEach(file => {
	if(file !== 'index.js'){
		let r = require('./' + file)
		router.use(r.routes())
	}
	
});

module.exports = router
